<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%String path = request.getContextPath(); %>
<!DOCTYPE html>
<html>
<head>
<base href="<%=path%>/">
<meta charset="UTF-8">
<title>Insert title here</title>
  <link rel="stylesheet" href="ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
  <script type="text/javascript" src="ztree/js/jquery-1.4.4.min.js"></script>
  <script type="text/javascript" src="ztree/js/jquery.ztree.core.js"></script>
</head>
<body>
<div class="ztree" id="myztree"></div>
</body>
<script type="text/javascript">
var zTreeObj;
// zTree 的参数配置，深入使用请参考 API 文档（setting 配置详解）
var setting = {};
// zTree 的数据属性，深入使用请参考 API 文档（zTreeNode 节点数据详解）
var zNodes =JSON.parse('${data}');
$(document).ready(function(){
   zTreeObj = $.fn.zTree.init($("#myztree"), setting, zNodes);
});
</script>
</html>